import React,{Component}from 'react';
import {Radio}from 'element-react';

export default class TableRadio extends Component{
	constructor(props){
		super(props);
	this.state={
		tableradio:this.props.data,
	 }
 }
 render(){
	return (
			<Radio.Group value={this.state.tableradio} onChange={(v)=>{
				this.setState({tableradio:v})
				this.props.change(v);
			}}>
				<Radio value="0">男</Radio>
				<Radio value="1">女</Radio>
			</Radio.Group>
		)
 
 }
}
